import Vue from 'vue'
import axios from 'axios'

import Antd from 'ant-design-vue';
import App from './App';
import 'ant-design-vue/dist/antd.css';
import router from './router'
import store from './store'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import screenfull from "screenfull";


if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false
Vue.use(Antd)
Vue.use(Viewer, {
  defaultOptions: {
    zIndex: 9999
  }
})

Viewer.setDefaults({
// 工具栏按钮的控制
  toolbar: {
    zoomIn: 1, // 放大
    zoomOut: 1, // 缩小
    oneToOne: 1, // 100%大小
    reset: 1, // 还原
    prev: 0, // 上一张
    play: 1, // 全屏显示
    next: 0, // 下一张
    rotateLeft: 1, // 逆时针旋转
    rotateRight: 1, // 顺时针旋转
    flipHorizontal: 1, // 水平翻转
    flipVertical: 1 // 垂直翻转
  }
})
/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
